package com.kuaimacode.kframework.mybatis.models.sms;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("sms_record")
public class SmsRecord {
    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "验证码")
    @TableField("verify")
    private String verify;

    @ApiModelProperty(value = "手机")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty(value = "过期时间，用于寻找最后一条")
    @TableField("time")
    private Date time;

    @ApiModelProperty(value = "请求者ip")
    @TableField("ip")
    private String ip;
}